cmake_minimum_required(VERSION 2.8)
project(RS_D455)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_definitions(-DCOMPILEDWITHC11)

find_package(OpenCV REQUIRED)
find_package(realsense2 REQUIRED)
include_directories(${realsense2_INCLUDE_DIRS} ${OPENCV_INCLUDE_DIRS})


add_executable(RS_D455_callback src/RS_D455_callback.cpp)
target_link_libraries(RS_D455_callback ${realsense2_LIBRARY} ${OpenCV_LIBS} )

add_executable(RS_D455_while src/RS_D455_while.cpp)
target_link_libraries(RS_D455_while ${realsense2_LIBRARY} ${OpenCV_LIBS} )
